using System;
using System.Collections.Generic;
using UnityEngine;

namespace Voodoo.Distribution
{
	[Serializable]
	public class LocalizationData : ScriptableObject
	{
		public int selectedSheetIndex = -1;

		public List<LocalizationSheet> sheetVersions = new List<LocalizationSheet>();

		public LocalizationSheet SelectedSheet
		{
			get
			{
				if (selectedSheetIndex >= 0)
				{
					return sheetVersions[Mathf.Clamp(selectedSheetIndex, 0, sheetVersions.Count - 1)];
				}
				return null;
			}
		}
	}
}
